package com.jeff.tianti.common;

public class PageBean {
    private Integer currentPage;

    private Integer pageSize;

    public Integer getCurrentPage() {

        if (this.currentPage==null){
            return 0;
        }
        return currentPage-1;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getPageSize() {
        if (pageSize ==null){
            return 10;
        }
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
